import Component.*;
import Decorator.BlackBorderDecorator;
import Decorator.ComponentDecorator;
import Decorator.ScrollBarDecorator;


public class Main {
    public static void main(String[] args) {
        Component window = new WindowComponent();
        ComponentDecorator ScrollBarDecorator = new ScrollBarDecorator(window);
        ComponentDecorator BlackBoxDecorator = new BlackBorderDecorator(ScrollBarDecorator);
        BlackBoxDecorator.display();
        System.out.println("---------------------------------");
        ComponentDecorator ComponentDecorator = new BlackBorderDecorator(new TextBoxComponent());
        ComponentDecorator.display();
        System.out.println("---------------------------------");
        ComponentDecorator ComponentDecorator2 = new ScrollBarDecorator(new BlackBorderDecorator(new ListBoxComponent()));
        ComponentDecorator2.display();
    }
}